import React from 'react'

const Tips = ((props) => {
    return (
        <ul>
            {props.list.map((item, index) => 
                <li 
                    onClick={props.value.bind(this, item)}
                    key={index}>
                    {item}
                </li>
            )}
        </ul>
    )
})

export default Tips